Repository navigation
FIX: Point the cloud examples at contact-us when a key lacks a paid property - #312
Merged
Merged
Conversation
…roperty, and run the 51Did example on the published package
…the cloud web pages
Four places still told the reader that a free resource key carries every property the example uses, while the same example now notes that some of those properties need a paid key. - The Device Detection getting started and User-Agent Client Hints web pages now say a key with the free properties the example uses can be created for free, which is what their console versions say. - The mixed getting started web page has the same wording in its header comment and in its no-key message. Its header now also says which of the properties it shows need a paid key, and what the page does when the key cannot return them. - The cloud request engine examples readme has the same wording, and says the hardware and IP location properties need a paid key. The countries console example can only show translated country names, and those need a paid key, but its no-key message offered a free key first. It now says the names need a paid key, links to contact us, and then says where a key carrying them is created with a License Key. Its header comment says the same. The Device Detection settings file comment no longer says "for free" twice.
The web examples keep their pipeline on the class, and the getting started web tests build theirs when they are collected. The paid key note tests then built a page against a stand-in cloud. Once the stand-in stopped, the class still held a pipeline pointing at it. With a resource key set, the getting started web tests ran later against that pipeline. The call was refused and the page answered 500. The paid key note tests now put back the pipeline the class had, or remove it where the class had none. A new test checks both.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The examples now meet the examples' rules for running out of the box and for a paid property.
pipeline/fiftyone_pipeline_did/examples/fodid_example.pyimportedowid, which the published 51Did package does not install. It now imports from the package's own module, so it runs with only the published package installed.offlineprocessing.pyandperformance.pycrashed with aTypeErrorwhen the evidence file could not be downloaded. They now say where the evidence file goes and exit cleanly.New tests check each note and link, the 51Did example with
owidunavailable, and both missing-evidence paths. The link lint and the repository's lint pass.